// 强隔离自定义弹窗样式，防止被全局.modal/modal-backdrop影响
.ruku-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.18);
  z-index: 9999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: auto !important;
}
.ruku-modal-dialog {
  background: #fff;
  border-radius: 16px;
  width: 90vw;
  max-width: 820px;
  min-width: 400px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  padding: 0;
  overflow: hidden;
  z-index: 10000 !important;
  position: relative;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 24px;
  color: #222;
  padding: 32px 36px 0 36px;
}
.close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}
.ruku-modal-body {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 40px 24px 40px;
  max-height: 70vh;
}
.ruku-modal-body::-webkit-scrollbar {
  width: 8px;
}
.ruku-modal-body::-webkit-scrollbar-thumb {
  background: #e3e6ea;
  border-radius: 8px;
}
.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 18px;
  margin-bottom: 12px;
}
.form-item {
  display: flex;
  flex-direction: column;
  flex: 1 1 30%;
  min-width: 0;
  max-width: 32%;
  margin-bottom: 18px;
}
.form-item label {
  font-size: 14px;
  color: #888;
  margin-bottom: 6px;
  font-weight: 500;
}
.form-item input,
.form-item textarea {
  border: 1.5px solid #e5e6eb;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 16px;
  background: #fafbfc;
  transition: border 0.2s;
  outline: none;
}
.form-item input:focus,
.form-item textarea:focus {
  border-color: #1890ff;
  background: #fff;
}
.form-item-full {
  flex-basis: 100%;
  min-width: 400px;
}
.form-item textarea {
  resize: vertical;
  min-height: 36px;
}
.table-scroll {
  overflow-x: auto;
  margin-top: 8px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1200px;
}
.table th, .table td {
  border: 1.5px solid #e5e6eb;
  padding: 8px 10px;
  font-size: 15px;
  text-align: center;
}
.table th {
  background: #f0f5ff;
  color: #222;
  font-weight: 600;
}
.btn-add-detail {
  background: #52c41a;
  color: #fff;
  border-radius: 6px;
  font-size: 15px;
  padding: 6px 20px;
  margin-bottom: 10px;
  border: none;
  transition: background 0.2s;
}
.btn-add-detail:hover {
  background: #389e0d;
}
.btn-remove-detail {
  background: #ff7875;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-remove-detail:hover {
  background: #d4380d;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 18px;
  padding: 0 36px 24px 36px;
}
.btn-cancel {
  background: #f5f5f5;
  color: #595959;
  border: 1.5px solid #d9d9d9;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
}
.btn-save {
  background: #1890ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 36px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-save:hover {
  background: #096dd9;
}
h4 {
  font-size: 18px;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
  margin-top: 18px;
} 